home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_11
/
allison
/
pool.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-09-05
|
378b
|
14 lines
LISTING 30 - C interface for a generic memory pool manager
/* pool.h */
#include <stddef.h>
/* Incomplete type: */
typedef struct Pool Pool;
/* Pool management functions */
Pool *pool_create(size_t elem_size, size_t init_alloc,
size_t extent);
void *pool_get_elem(Pool *p);
void pool_release_elem(Pool *p, void *elem);
void pool_free(Pool *p);